<%@ page language="java" contentType="text/html; charset=UTF-8"%>
<%@ taglib uri="http://java.sun.com/jsp/jstl/core" prefix="c"%>
<%@ taglib prefix="sf " uri="http://www.springframework.org/tags/form"%>
<%@ taglib prefix="s " uri="http://www.springframework.org/tags"%>
<%@ taglib uri="http://java.sun.com/jsp/jstl/fmt" prefix="fmt"%>
<!DOCTYPE html>
<html>
<head>
<title>角色主页</title>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<meta name="renderer" content="webkit">
<%@ include file="/WEB-INF/common.jsp"%>

<link href="${path }/resources/css/plugins/bootstrap-table/bootstrap-table.min.css" rel="stylesheet">
<link href="${path }/resources/css/animate.css" rel="stylesheet">
<link href="${path }/resources/css/style.css?v=4.1.0" rel="stylesheet">

<!--dataTables css样式-->
<link rel="stylesheet" type="text/css"
	href="${path }/resources/css/jquery.dataTables.min.css">
<!--DataTables button扩展-->
<link rel="stylesheet" type="text/css"
	href="${path }/resources/css/buttons.dataTables.min.css">
<link rel="stylesheet" type="text/css"
	href="${path }/resources/css/form.css">
<link rel="stylesheet" type="text/css"
	href="${path }/resources/css/daterangepicker.css">
</head>
<style type="text/css" rel="stylesheet">
        #province {
            width:150px;
            margin-left:20px;
            display:inline-block;
        }
        #city{
            width:150px;
            margin-left:20px;
            display:inline-block;
        }
        #district{
            width:150px;
            margin-left:20px;
            display:inline-block;
        } 
</style>
<body class="gray-bg" style="">
<jsp:include page="/WEB-INF/loginCheck.jsp" />
	<div>
		<h1 style="margin-left:20px">编辑人员账号</h1>
	</div>
	<!--添加的表单  -->
	<div id="" barclass="panel-body" style="margin-top: 30px">
		<%-- action="${path }/Enterprise/addEnterPerson.htm" method="post"  --%>
		<form action="${path}/Enterprise/editEmployee.htm" method="post" data-parsley-validate
										class="form-horizontal form-label-left"  enctype="multipart/form-data">
			<input type="hidden" name="id" value="${userBasicInfo.id }">
			<input type="hidden" name="type" value="1">
			<div class="form-group">
				<label class="control-label col-md-3 col-sm-3 col-xs-12"
					for="last-name">单位名：<span class="required">*</span>
				</label>
				<div class="col-md-6 col-sm-6 col-xs-12">
					<input  value="${userBasicInfo.name}" name="name" required="required" class="form-control col-md-7 col-xs-12" required="required">
				</div>
			</div>
			
			<div class="form-group">
				<!-- <label class="control-label col-md-3 col-sm-3 col-xs-12"
					for="last-name">地址<span class="required">*</span>
				</label>
				<div class="col-md-6 col-sm-6 col-xs-12">
					<div id="distpicker5">
						<div class="form-group" id="province">
							<label class="sr-only" for="province">Province</label> <select
								class="form-control" id="province" name="province" ></select>
						</div>
						<div class="form-group" id="city">
							<label class="sr-only" for="city">City</label> <select
								class="form-control" id="city" name="city" ></select>
						</div>
						<div class="form-group" id="district">
							<label class="sr-only" for="district">District</label> <select
								class="form-control" id="district" name="district" ></select>
						</div>
					</div>
				</div> -->
			</div>
			<div class="form-group">
				<label class="control-label col-md-3 col-sm-3 col-xs-12"
					for="last-name">电话<span class="required">*</span>
				</label>
				<div class="col-md-6 col-sm-6 col-xs-12">
					<input  value="${userBasicInfo.phoneNumber}" name="phone_number" required="required" class="form-control col-md-7 col-xs-12" required="required">
				</div>
			</div>
<!-- 			<div class="form-group">
				<label class="control-label col-md-3 col-sm-3 col-xs-12"
					for="last-name">密码<span class="required">*</span>
				</label>
				<div class="col-md-6 col-sm-6 col-xs-12">
					<input  value="" name="password" required="required" class="form-control col-md-7 col-xs-12" required="required">
				</div>
			</div> -->
			<div class="form-group">
				<label class="control-label col-md-3 col-sm-3 col-xs-12"
					for="last-name">身份<span class="required">*</span>
				</label>
				<div class="col-md-6 col-sm-6 col-xs-12">
					<select id="personIdentity" class="selectpicker form-control" data-live-search="true" name="personIdentity" required="required">
						<option value="维保企业">维保企业</option>
					</select>
					<input type="hidden" id="personIdentityHidden" value="${userBasicInfo.personIdentity}">
				</div>
			</div>
			<div class="form-group">
				<label class="control-label col-md-3 col-sm-3 col-xs-12"
					for="last-name">角色<span class="required">*</span>
				</label>
				<div class="col-md-6 col-sm-6 col-xs-12">
					<select id="roleId" class="selectpicker form-control" data-live-search="true" name="roleId" required="required">
		                <option value="10">消防支队</option>
					</select>
					<input type="hidden" id="roleHidden" value="${userBasicInfo.roleId}">
				</div>
			</div>
			<div class="form-group">
				
				<label class="control-label col-md-3 col-sm-3 col-xs-12"
					for="first-name">状态<span class="required">*</span>
				</label>
				<label style="font-size:20px"><input value="开启" name="status" type="radio" required="required"  style="margin-left:80px;">开启</label>
				<label style="font-size:20px" ><input value="停止" name="status" type="radio" required="required"  style="margin-left:200px;">停止</label>
			    <input type="hidden" id="statusHidden" value="${userBasicInfo.status}">
			</div>
			<div class="form-group">
				<div class="col-md-6 col-sm-6 col-xs-12 col-md-offset-3" >
					<button id="submit" type="submit" class="btn btn-success">提交</button>
					<a href="${path }/Enterprise/getFirePersonList.htm" class="btn btn-primary" style="margin-left:500px;">返回</a>
				</div>
			</div>

		</form>

	</div>
	
  	<!--表格  -->
 	<div class="col-md-12 col-sm-12 col-xs-12" style="margin-top: 30px">
	

	</div>
	<!-- Peity-->
	<script src="${path }/resources/js/plugins/peity/jquery.peity.min.js"></script>
	
	<!-- Bootstrap table-->
	<script src="${path }/resources/js/plugins/bootstrap-table/bootstrap-table.min.js"></script>
	<script src="${path }/resources/js/plugins/bootstrap-table/locale/bootstrap-table-zh-CN.min.js"></script>
    <!--DataTables button扩展-->
	<script
		src="${path }/resources/js/dataTables.buttons.min.js"></script>
	<!--DataTables 导出相关js文件-->
	<script src="${path }/resources/js/buttons.html5.min.js"></script>
	<script src="${path }/resources/js/jszip.min.js"></script>
	<!-- 自定义js-->
	<script src="${path }/resources/js/content.js?v=1.0.0"></script>
	
	<!-- jQuery Validation plugin javascript-->
    <script src="${path }/resources/js/plugins/validate/jquery.validate.min.js"></script>
    <script src="${path }/resources/js/plugins/validate/messages_zh.min.js"></script>
   <!--DataTables 核心 js-->
	<script src="${path }/resources/js/jquery.dataTables.min.js"></script>
   	<!-- jQuery form  -->
    <script src="${path }/resources/js/jquery.form.min.js"></script>
    
    <!-- layer javascript -->
    <script src="${path }/resources/js/plugins/layer/layer.min.js"></script>
        <!-- 省市联动 -->
	<script src="${path }/resources/js/distpicker.data.js"></script>
	<script src="${path }/resources/js/distpicker.js"></script>
	<script src="${path }/resources/js/main.js"></script>
     <script src="${path }/resources/js/jquery.validate.min.js"></script>
    	<script type="text/javascript">
	<!-- 设置下拉框的默认值 -->
	window.onload=function(){	
		var personIdentity = $("#personIdentityHidden").val();//设置当前身份选中项
		$("#personIdentity").val(personIdentity);
		
		var roleId = $("#roleHidden").val();//设置当前角色选中项
		$("#roleId").val(roleId);
		
		var level = $("#levelHidden").val();//设置当前角色选中项
		$("#technical_level").val(level);
		
		var status = $("#statusHidden").val();
		$("input[name=status][value=" + status + "]").attr("checked", true); //设置当前状态选中项 */
		
		}
	</script>
    


</body>
</html>